﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using sexhealth.console.service.post;
using sexhealth.console.service.common.vo;
using System.Text;

public partial class usercontrol_MetaInfo : System.Web.UI.UserControl
{
    PostService postService = new PostService();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) 
        {
            WebVO webDescription=postService.DaoGetVOById<WebVO>(1);
             WebVO webKeyword=postService.DaoGetVOById<WebVO>(2);
            StringBuilder sb=new StringBuilder();
            sb.Append("<meta name='description' content='" + webDescription.Value + "'/>");
            sb.Append("<meta name='keywords' content='" + webKeyword.Value + "' />");
           
            ltlMetaInfo.Text = sb.ToString();
        }
      
    }
}
